package com.yesjpt.page;

import java.io.Serializable;
import java.util.List;

/**
 * 分页查询返回
 * 
 * @author 
 *
 */
public class PageTableResponse implements Serializable {

	private static final long serialVersionUID = 620421858510718076L;

	private Long recordsTotal;
	private Long recordsFiltered;
	private List<?> data;
	
	private Object append;//额外的数据，比如统计出来的乱七八糟的

	public PageTableResponse(Long recordsTotal, Long recordsFiltered, List<?> data) {
		super();
		this.recordsTotal = recordsTotal;
		this.recordsFiltered = recordsFiltered;
		this.data = data;
	}

	public PageTableResponse(Long recordsTotal, Long recordsFiltered, List<?> data, Object append) {
		super();
		this.recordsTotal = recordsTotal;
		this.recordsFiltered = recordsFiltered;
		this.data = data;
		this.append = append;
	}
	
	public Long getRecordsTotal() {
		return recordsTotal;
	}

	public void setRecordsTotal(Long recordsTotal) {
		this.recordsTotal = recordsTotal;
	}

	public Long getRecordsFiltered() {
		return recordsFiltered;
	}

	public void setRecordsFiltered(Long recordsFiltered) {
		this.recordsFiltered = recordsFiltered;
	}

	public List<?> getData() {
		return data;
	}

	public void setData(List<?> data) {
		this.data = data;
	}

	public Object getAppend() {
		return append;
	}

	public void setAppend(Object append) {
		this.append = append;
	}

}